//
//  DrawerViewController.h
//  Slice
//
//  Created by lanou on 16/6/13.
//  Copyright © 2016年 wangjinchao. All rights reserved.
//

#import <UIKit/UIKit.h>


//偏移比例
#define  kb 0.7
@interface DrawerViewController : UIViewController


//主页视图
@property (nonatomic, strong) UIView *mainView;

//左侧视图
@property (nonatomic, strong) UIView *leftView;

//是否已经打开抽屉
@property (nonatomic, assign) BOOL isOpen;

//平移手势
@property (nonatomic, strong) UIPanGestureRecognizer *pan;

//初始化
- (instancetype)initWithLeftViewController:(UIViewController *)leftViewController MainViewController:(UIViewController *)MainViewController;
//切换主视图控制器
- (void)setMainViewController:(UIViewController *)vc;




//打开抽屉
- (void)open;
//关闭抽屉
-(void) close;


@end
